# -*- coding: utf-8 -*- 

"""
This file is part of PeerTool, a web application for collaborative
decision-making (Copyrighted, 2009-2010, Ellis & Grant, Inc.)
Developed by Michael F. Ellis <michael.f.ellis@gmail.com>.  
License: AGPL v3
PeerTool comes with ABSOLUTELY NO WARRANTY.
"""                
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################

response.title = T("PeerTool")
response.subtitle = T('Brainstorm. Evaluate. Decide!')

##########################################
## this is the main application menu
## add/remove items as required
##########################################

response.menu = [
    [T('Home'), False, 
     URL(request.application,'default','index'), []],
     
    [T('Choose'), False, 
     URL(request.application,'choose','index'), []],     

    [T('Respond'), False, 
     URL(request.application,'respond','index'), []],  

    [T('Results'), False, 
     URL(request.application,'results','index'), []],     

    [T('Edit'), False, 
     URL(request.application,'editproblem','index'), []],  
    ]

response.menu1 = [    
    [T('Invite'), False, 
     URL(request.application,'invitations','index'), []],
    ]

response.menu2 = [
    [T('New'), False, 
     URL(request.application,'default','newproblem'), []], 

    [T('Clone'), False, 
     URL(request.application,'default','cloneproblem'), []], 
    ]

##########################################
## this is here to provide shortcuts
## during development. remove in production 
##########################################
if PTCFG.development:
    response.menu_edit=[
        [T('Edit'), False, URL('admin', 'default', 
            'design/%s' % request.application),
            [
                [T('Controller'), False, 
                 URL('admin', 'default', 'edit/%s/controllers/default.py' \
                         % request.application)],
                [T('View'), False, 
                 URL('admin', 'default', 'edit/%s/views/%s' \
                         % (request.application,response.view))],
                [T('Layout'), False, 
                 URL('admin', 'default', 'edit/%s/views/layout.html' \
                         % request.application)],
                [T('Stylesheet'), False, 
                 URL('admin', 'default', 'edit/%s/static/base.css' \
                         % request.application)],
                [T('DB Model'), False, 
                 URL('admin', 'default', 'edit/%s/models/db.py' \
                         % request.application)],
                [T('Menu Model'), False, 
                 URL('admin', 'default', 'edit/%s/models/menu.py' \
                         % request.application)],
                [T('Database'), False, 
                 URL(request.application, 'appadmin', 'index')],
                ]
        ],
    ]
